<script setup lang="ts">
import JcFooter from '@/components/JcFooter/index.vue'
import {caseItem} from '@/types/case'
import {getCaseList} from '@/Api/case'
import { ref,reactive } from 'vue'

getCaseList(1).then(res => {
  console.log('返回结果',res)
}).catch(err => {
  console.log(err)
})

let caseList = ref<caseItem[]>([{
    id: 1,
    cover: 'https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png',
    name: '技术公益',
    tags:[{
      id:1,name:'小程序'
    },{
      id:2,
      name:'视觉设计'
    }],
    description: '腾讯微光行动'
},{
  id: 2,
  cover: 'https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png',
  name: '小程序',
  tags:[{id:1,name:'小程序'}],
  description: '腾讯微光行动'
},{
  id: 3,
  cover: 'https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png',
  name: '技术公益',
  tags:[{id:1,name:'小程序'}],
  description: '腾讯微光行动'
},{
  id: 4,
  cover: 'https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png',
  name: '技术公益',
  tags:[{id:1,name:'小程序'}],
  description: '腾讯微光行动'
},{
  id: 5,
  cover: 'https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png',
  name: '技术公益',
  tags:[{id:1,name:'小程序'}],
  description: '腾讯微光行动'
},{
  id: 6,
  cover: 'https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png',
  name: '技术公益',
  tags:[{id:1,name:'小程序'}],
  description: '腾讯微光行动'
},{
  id: 7,
  cover: 'https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png',
  name: '技术公益',
  tags:[{id:1,name:'小程序'}],
  description: '腾讯微光行动'
}])



</script>

<template>
  <div class="jc-case-page">
    <main class="case-main jc-center-width">
      <div class="case-top">
        <div class="title">
          <h1 class="en-title">PROJECTS</h1>
          <h1 class="cn-title">探索互联网生态体验创新</h1>
          <h5 class="cn-desc">致力于提升产品用户体验，探索互联网生态体验创新</h5>
        </div>
        <!--    tab    -->
        <div class="tab-content">
          <div class="tab-sort-title">
            <div class="sift-title">行业：</div>
            <ul class="sift-list">
              <li class="sift-item active-sift-item">全部行业</li>
              <li class="sift-item">政务民生</li>
              <li class="sift-item">智慧文旅</li>
              <li class="sift-item">技术公益</li>
              <li class="sift-item">企业协同</li>
              <li class="sift-item">企业形象</li>
              <li class="sift-item">大会展览</li>
            </ul>
          </div>
          <div class="tab-sort-title">
            <div class="sift-title">服务：</div>
            <ul class="sift-list">
              <li class="sift-item">全部服务</li>
              <li class="sift-item active-sift-item">数字化转型</li>
              <li class="sift-item">服务设计体验</li>
              <li class="sift-item">品牌形象</li>
              <li class="sift-item">研究报告</li>
              <li class="sift-item">产品工具</li>
            </ul>
          </div>
        </div>
      </div>
      <!--   案例列表   -->
      <div class="jc-row-col-2">
        <div class="jc-row-item" v-for="item in 12">
          <div class="jc-row-item-inner">
            <div class="inner-top-img">
              <img class="row-item-cover" src="https://cdc-wp-blog-1258344706.cos.ap-guangzhou.myqcloud.com/production/wp-content/uploads/2021/11/%E7%B2%A4%E7%9C%81%E4%BA%8B-%E5%B0%81%E9%9D%A2-1.png" alt="" srcset="">
            </div>
            <div class="inner-bottom">
              <div class="inner-title">
                <div class="case-title-text">技术公益</div>
              </div>
              <div class="row-desc-title">腾讯微光行动</div>
              <div class="inner-tag-list">
                <div class="tag-item">
                  小程序
                </div>
                <div class="tag-item">
                  视觉设计
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="more-examples">
        <div class="more-example-btn load-more-btn jc-m-t-64 jc-m-b-72">更多案例</div>
      </div>
    </main>
    <JcFooter></JcFooter>
  </div>
</template>


<style lang="scss" scoped>
.jc-case-page {
  padding-top: calc(var(--jc-header-height) + 20px);
  width: 100%;
  min-height: 100vh;
  .case-main {
    //background-color: #17a2b8;
    .case-top {
      .title {
        height: 210px;
        .en-title {
          height: 64px;
          font-size: 36px;
          color: var(--jc-color-primary);
          text-align: left;
          line-height: 64px;
        }
        .cn-title {
          font-size: 48px;
          color: rgba(0, 0, 0, .9);
          letter-spacing: 1px;
          line-height: 64px;
        }
        .cn-desc {
          font-weight: 300;
          margin: 12px 0 6px;
          font-size: 20px;
          color: rgba(0, 0, 0, .6);
          height: 28px;
          line-height: 28px;
        }
      }
      .tab-content {
        width: 100%;
        padding: 20px 0;
        .tab-sort-title {
          padding-bottom: 10px;
          display: flex;
          align-items: center;
          width: 100%;
          font-size: 14px;
          .sift-title {

          }
          .sift-list {
            flex: 1;
            display: flex;
            .sift-item {
              min-width: 96px;
              text-align: center;
              padding: 16px 14px;
              border-radius: 24px;
              margin: 0 4px;
              cursor: pointer;
              &:hover {
                background-color: var(--jc-color-primary);
                color: var(--jc-color-text-primary);
              }
            }
            .active-sift-item {
              background-color: var(--jc-color-primary);
              color: var(--jc-color-text-primary);
            }
          }
        }
      }
    }
    .jc-row-col-2 {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      .jc-row-item {
        flex: 0 0 50%;
        &:nth-child(2n+1) {
          padding-right: 20px;
        }
        &:nth-child(2n) {
          padding-left: 20px;
        }
        .jc-row-item-inner {
          margin: 56px 0 16px;
          border: 1px solid #E6E6E6;
          border-radius: 4px;
          &:nth-child(1),&:nth-child(2) {
            margin-top: 36px;
          }
          &:hover {
            border: 1px solid var(--jc-color-primary);
          }
          .inner-top-img {
            height: 326px;
            .row-item-cover {
              width: 100%;
              height: 100%;
              object-fit: cover;
            }
          }
          .inner-bottom {
            padding: 20px;
            .inner-title {
              position: relative;
              .case-title-text {
                display: inline-block;
                position: relative;
                font-size: 18px;
                font-weight: bold;
                color: rgba(0,0,0,0.6);
                margin-bottom: 8px;
                &::after {
                  position: absolute;
                  right: -35px;
                  top: 50%;
                  transform: translateY(-50%);
                  content: "";
                  width: 25px;
                  height: 4px;
                  background-color: var(--jc-color-primary);
                }
              }
            }
            .row-desc-title {
              font-size: 22px;
              line-height: 28px;
              font-weight: bold;
              letter-spacing: 1.5px;
              margin-bottom: 12px;
            }
            .inner-tag-list {
              width: 100%;
              display: flex;
              align-items: center;
              flex-wrap: wrap;
              .tag-item {
                height: 24px;
                line-height: 24px;
                background: #f0f0f0;
                border-radius: 16px;
                margin-right: 8px;
                font-size: 12px;
                color: rgba(0, 0, 0, .6);
                text-align: center;
                padding: 0 12px;
                &:hover {
                  background-color: var(--jc-color-hover-primary);
                  color: var(--jc-color-primary);
                }
              }
            }
          }
        }
      }
    }
    .more-examples {
      width: 100%;
      display: flex;
      justify-content: center;
      .load-more-btn {
        cursor: pointer;
        display: inline-block;
        text-align: center;
        padding: 12px 24px;
        color: var(--jc-color-primary);
        border: 1px solid var(--jc-color-primary);
      }
    }
  }
}
</style>
